var myApp = angular.module('app', []);

myApp.controller('Ctrl', function Ctrl($scope, $http) {
    $scope.user = { name: 'guest', last: 'visitor' };
    $scope.connect = function() {
        $http.put('/Login', $scope.user);
    };
});